﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OneMG.Phoenix.Service.Model;
using OneMG.Phoenix.Service.Contracts;
using OneMG.Phoenix.Service;

namespace OneMG.Phoenix.AdminSite.Views.SiteConfig
{
    public partial class About : System.Web.UI.Page
    {
        ISiteConfigService ISiteConfig = new SiteConfigService();
        public SiteConfigModel objSiteConfig = new SiteConfigModel();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                objSiteConfig = ISiteConfig.GetByConfigID(1);
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            objSiteConfig = ISiteConfig.GetByConfigID(1);
            objSiteConfig.About = Request.Form["content"];
            ISiteConfig.UpdateByConfigID(objSiteConfig);
            Response.Write("<script>alert('保存成功!')</script>");


        }
    }
}
